package com.punch.common.dto.course;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 申请开班表单
 */
@Data
public class ApplyCourseDTO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "班级id不能为空")
    private Long classId;

    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "学校不能为空")
    @Min(value = 1, message = "学校不能为空")
    private Long schoolId;

    private String schoolName;
}
